import React, { Suspense } from 'react';
import logo from './logo.svg';
import './assets/css/App.css';
import { Button } from 'antd';
import routes from './routes';
import {Link, useRoutes} from 'react-router-dom'

function App() {
  return (<div className="App">
      <div className="topHeader">
        <Link to="/home-page"></Link>
      </div>
      <Suspense fallback="Loading...">
        <div className="main">
          {useRoutes(routes)}
        </div>
      </Suspense>
    </div>);
}

export default App;
